import { getRequest, postRequest, uploadRequest, downloadRequestget } from '/@/lib/axios';

export const Funding = {
  //   筹资申报
  FundingInit: (param) => {
    return postRequest('/foundation/blfinancproject/list', param);
  },
  //申报单位
  FindDanWei: () => {
    return getRequest('/foundation/bldept/getAll');
  },
  // 筹资新增
  AddFundIng: (param) => {
    return uploadRequest('/foundation/blfinancproject/save', param);
  },
  //获取筹资详情
  FindDetail: (blfinancprojectid) => {
    return getRequest(`/foundation/blfinancproject/info/${blfinancprojectid}`);
  },
  // 筹资修改
  updateFunding: (param) => {
    return uploadRequest('/foundation/blfinancproject/update', param);
  },
  //筹资删除
  deleteFunding: (param) => {
    return postRequest(`/foundation/blfinancproject/delete`, param);
  },
  // 筹资下载
  DoloadWord: (blfinancprojectid) => {
    return getRequest(`/foundation/blfinancproject/downloadInfo/${blfinancprojectid}`);
  },
  //捐赠人信息
  FindDonation: (param) => {
    return postRequest('/foundation/blfinancproject/getDonorList', param);
  },
  //捐赠人信息导出
  exportImport: (param) => {
    return downloadRequestget('/foundation/blfinancproject/exportDonorList', param);
  },
  //根据id查询审核流程
  FlowPath: (blfinancprojectid) => {
    return getRequest(`/foundation/blfinancproject/flowPath/${blfinancprojectid}`);
  },
  PeopleFindDowLoad: (param) => {
    return getRequest('/foundation/blfinancproject/getAgreement', param);
  },
};
